<template>
  <div class="wrapper">
    <v-head></v-head>
    <v-sidebar></v-sidebar>
    <div class="content-box" :class="{'content-collapse':collapse}">
      <div class="content scrollbar">
        <keep-alive>
          <router-view></router-view>
        </keep-alive> 
        <el-backtop target=".content"></el-backtop>
      </div>
    </div>
  </div>
</template>

<script>
import vHead from './webCommon/Header.vue';
import bus from '@/common/bus';
import vSidebar from './webCommon/Sidebar.vue';
export default {
  data () {
    return {
      tagsList: [],
      collapse: false,
      tabIndex: 0,
    };
  },
  components: {
    vHead,
    vSidebar
  },
  created () {
    bus.$on('collapse-content', msg => {
      this.collapse = msg;
    });
  }
};
</script>
